package cn.com.jit;

//import org.eclipse.jgit.api.Git;
//import org.eclipse.jgit.api.errors.GitAPIException;

import java.io.File;

public class GitClone {
    public static void main(String[] args) {
        String repoUrl = "https://gitlab.com/yourusername/yourrepository.git";
        String localPath = "/path/to/local/repository";
        
//        try {
//            Git.cloneRepository()
//                .setURI(repoUrl)
//                .setDirectory(new File(localPath))
//                .call();
//            System.out.println("Repository cloned successfully.");
//        } catch (GitAPIException e) {
//            e.printStackTrace();
//        }
    }
}
